<?php
/**
 * Created by PhpStorm.
 * User: coffee
 * Date: 2018/1/9
 * Time: 下午12:15
 */

namespace App\Exceptions;


use Symfony\Component\HttpKernel\Exception\HttpException;

class DecryptDataErrorException extends HttpException
{
    protected $message = '解密失败';
    protected $code = 'decript.data.error';

    public function __construct($errorCode)
    {
        $this->code = $this->code . ': ' . $errorCode;
        parent::__construct(400, $this->message);
    }
}